package modele;

import java.util.Date;

/**
    ...
    @version 1.0
*/

public class MOperation {
    
    /** ... */
    private int id;
    
    /** ... */
    private Transaction operation;
    
    /** ... */
    private float montant;
    
    /** ... */
    private Date date;
    
    /** ... */
    private boolean effectuer;
    
    /**
        ...
        @param a ...
        @return ...
    */
    public MOperation(int id, Transaction operation, float montant, Date date, boolean effectuer){
        this.id = id;
        this.operation = operation;
        this.montant = montant;
        this.date = date;
        this.effectuer = effectuer;
    }

    public Transaction getOperation() {
        return operation;
    }
    public void setOperation(Transaction operation) {
        this.operation = operation;
    }
    public float getMontant() {
        return montant;
    }
    public void setMontant(float montant) {
        this.montant = montant;
    }
    public Date getDate() {
        return date;
    }
    public void setDate(Date date) {
        this.date = date;
    }
    public boolean isEffectuer() {
        return effectuer;
    }
    public void setEffectuer(boolean effectuer) {
        this.effectuer = effectuer;
    }
    /**
        ...
        @param a ...
        @return ...
    */
    public void afficherOperation(){
        System.out.println("Transaction "+this.id+": "+this.operation+" de "+this.montant+" enregistré le "+this.date);
    }
    
    
    
}
